interface common{
  /** value will show as string */
  stringMode?: boolean;
  defaultValue?: any;
  value?: any;
  prefixCls?: string;
  className?: string;
  style?: React.CSSProperties;
  min?: any;
  max?: any;
  step?: any;
  tabIndex?: number;
  upHandler?: React.ReactNode;
  downHandler?: React.ReactNode;
  keyboard?: boolean;
  /** Parse display value to validate number */
  parser?: (displayValue: string | undefined) => T;
  /** Transform `value` to display value show in input */
  formatter?: (value: any | undefined) => string;
  /** Syntactic sugar of `formatter`. Config precision of display. */
  precision?: number;
  /** Syntactic sugar of `formatter`. Config decimal separator of display. */
  decimalSeparator?: string;
  onInput?: (text: string) => void;
  onChange?: (val: any) => void;
  onPressEnter?: React.KeyboardEventHandler<HTMLInputElement>;
  onStep?: (value: any, info: {
      offset: any;
      type: 'up' | 'down';
  }) => void;
}
export default interface InputNumberProps {
  common?: common, // input 默认选项
  value: any,
  ranges?: Array<{key?:string, rule?: Function, value?: any}|common>, // 扩展ranges, key 是当前input的返回值
  editable?: Boolean, // 支持编辑模式
  className?: string; //设置编辑模式的样式
  onChange: (val: any) => void;
}
